package com.zhijian.medical.service;

import com.zhijian.medical.entity.po.EmployeePhysicalRecord;
import com.zhijian.medical.entity.vo.request.EmployeePhysicalRecordSaveOrUpdateVo;
import com.zhijian.medical.entity.vo.request.EmployeePhysicalRecordSaveVo;
import com.zhijian.medical.entity.vo.request.EmployeePhysicalRecordSearchVo;
import com.zhijian.medical.entity.vo.response.EmployeePhysicalRecordVo;
import com.zhijian.util.page.Page;

import java.util.List;

/**
 * 职工体检档案 业务处理层
 *
 * @author auto
 * @version 1.0
 * @date 2024-11-14 14:30:08
 */
public interface EmployeePhysicalRecordService {

    /**
    * 主键查询
    *
    * @param id
    * @return
    */
    EmployeePhysicalRecord selectById(Long id);

    /**
    * 主键查询vo
    *
    * @param id
    * @return
    */
    EmployeePhysicalRecordVo selectVoById(Long id);

    /**
    * 按照主键删除
    *
    * @param id
    */
    void deleteById(Long id);

    /**
    * 按照主键批量删除
    *
    * @param idList
    */
    void deleteByIdList(List<Long> idList);

    /**
    * 新增
    *
    * @param employeePhysicalRecord
    * @return
    */
    Long insert(EmployeePhysicalRecord employeePhysicalRecord);

    /**
    * 动态新增
    *
    * @param employeePhysicalRecord
    * @return
    */
    Long insertSelective(EmployeePhysicalRecord employeePhysicalRecord);

    /**
    * 更改
    *
    * @param employeePhysicalRecord
    * @return
    */
    boolean update(EmployeePhysicalRecord employeePhysicalRecord);

    /**
    * 动态修改
    *
    * @param record
    * @return
    */
    boolean updateByPrimaryKeySelective(EmployeePhysicalRecord record);

    /**
    * 保存
    *
    * @param saveOrUpdateVo
    * @return
    */
    boolean save(EmployeePhysicalRecordSaveOrUpdateVo saveOrUpdateVo);


    /**
     * 保存
     *
     * @param saveOrUpdateVo
     * @return
     */
    boolean saveList(EmployeePhysicalRecordSaveVo saveOrUpdateVo);
    /**
    * 编辑
    *
    * @param saveOrUpdateVo
    * @return
    */
    boolean modify(EmployeePhysicalRecordSaveOrUpdateVo saveOrUpdateVo);

    /**
    * 列表
    *
    * @param employeePhysicalRecordSearchVo
    * @return
    */
    EmployeePhysicalRecordVo selectOne(EmployeePhysicalRecordSearchVo employeePhysicalRecordSearchVo);

    /**
    * 总数
    *
    * @param employeePhysicalRecordSearchVo
    * @return
    */
    Integer count(EmployeePhysicalRecordSearchVo employeePhysicalRecordSearchVo);

    /**
    * 列表
    *
    * @param employeePhysicalRecordSearchVo
    * @return
    */
    List<EmployeePhysicalRecordVo> selectList(EmployeePhysicalRecordSearchVo employeePhysicalRecordSearchVo);

    /**
    * 分页查询
    *
    * @param employeePhysicalRecordSearchVo
    * @return
    */
    Page<EmployeePhysicalRecordVo> selectPage(EmployeePhysicalRecordSearchVo employeePhysicalRecordSearchVo);

    /**
    * 批量新增数据（MyBatis原生foreach方法）
    *
    * @param entities 实例对象列表
    * @return 影响行数
    */
    boolean insertBatch(List<EmployeePhysicalRecord> entities);

    /**
    * 动态删除，慎重用此方法！！
    *
    * @param employeePhysicalRecordSearchVo
    * @return
    */
    void deleteByCondition(EmployeePhysicalRecordSearchVo employeePhysicalRecordSearchVo);
}